<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: Aws::Crt::Io::DefaultHostResolver Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceAws.html">Aws</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt.html">Crt</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt_1_1Io.html">Io</a></li><li class="navelem"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Aws::Crt::Io::DefaultHostResolver Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="HostResolver_8h_source.html">HostResolver.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Aws::Crt::Io::DefaultHostResolver:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.png" usemap="#Aws::Crt::Io::DefaultHostResolver_map" alt=""/>
  <map id="Aws::Crt::Io::DefaultHostResolver_map" name="Aws::Crt::Io::DefaultHostResolver_map">
<area href="classAws_1_1Crt_1_1Io_1_1HostResolver.html" alt="Aws::Crt::Io::HostResolver" shape="rect" coords="0,0,196,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2ef472852bb17f01d4e7013b4bcb58a9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a2ef472852bb17f01d4e7013b4bcb58a9">DefaultHostResolver</a> (<a class="el" href="classAws_1_1Crt_1_1Io_1_1EventLoopGroup.html">EventLoopGroup</a> &amp;elGroup, size_t maxHosts, size_t maxTTL, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept</td></tr>
<tr class="separator:a2ef472852bb17f01d4e7013b4bcb58a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5afc7f0e2880b4bcf8331f0a4c4486a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a5afc7f0e2880b4bcf8331f0a4c4486a0">~DefaultHostResolver</a> ()</td></tr>
<tr class="separator:a5afc7f0e2880b4bcf8331f0a4c4486a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59e25b42b810a6f62b31b9db794536cd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a59e25b42b810a6f62b31b9db794536cd">DefaultHostResolver</a> (const <a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;)=delete</td></tr>
<tr class="separator:a59e25b42b810a6f62b31b9db794536cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30475299241bd247372e095b7a6cc14d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a30475299241bd247372e095b7a6cc14d">operator=</a> (const <a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;)=delete</td></tr>
<tr class="separator:a30475299241bd247372e095b7a6cc14d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b8ceca8e65d425eadffc389225b0010"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a3b8ceca8e65d425eadffc389225b0010">DefaultHostResolver</a> (<a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a3b8ceca8e65d425eadffc389225b0010"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a163c9a7c75b092334491d2838157cf1e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a163c9a7c75b092334491d2838157cf1e">operator=</a> (<a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a163c9a7c75b092334491d2838157cf1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f491d1e9b242c40722a6de8629f81cd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a5f491d1e9b242c40722a6de8629f81cd">operator bool</a> () const noexcept</td></tr>
<tr class="separator:a5f491d1e9b242c40722a6de8629f81cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9565cc5a541c28081416f05723276916"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a9565cc5a541c28081416f05723276916">LastError</a> () const noexcept</td></tr>
<tr class="separator:a9565cc5a541c28081416f05723276916"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a828460a40b73a98e4360cbecf76c5865"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html#a828460a40b73a98e4360cbecf76c5865">ResolveHost</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;host, const <a class="el" href="namespaceAws_1_1Crt_1_1Io.html#acbf0e730c9b86819e74f33f7b5eed73d">OnHostResolved</a> &amp;onResolved) noexcept override</td></tr>
<tr class="separator:a828460a40b73a98e4360cbecf76c5865"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classAws_1_1Crt_1_1Io_1_1HostResolver"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classAws_1_1Crt_1_1Io_1_1HostResolver')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classAws_1_1Crt_1_1Io_1_1HostResolver.html">Aws::Crt::Io::HostResolver</a></td></tr>
<tr class="memitem:a2ff3723407036cd4bfcc905bf9d8270a inherit pub_methods_classAws_1_1Crt_1_1Io_1_1HostResolver"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1HostResolver.html#a2ff3723407036cd4bfcc905bf9d8270a">~HostResolver</a> ()</td></tr>
<tr class="separator:a2ff3723407036cd4bfcc905bf9d8270a inherit pub_methods_classAws_1_1Crt_1_1Io_1_1HostResolver"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2ef472852bb17f01d4e7013b4bcb58a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ef472852bb17f01d4e7013b4bcb58a9">&#9670;&nbsp;</a></span>DefaultHostResolver() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::DefaultHostResolver::DefaultHostResolver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAws_1_1Crt_1_1Io_1_1EventLoopGroup.html">EventLoopGroup</a> &amp;&#160;</td>
          <td class="paramname"><em>elGroup</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxHosts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxTTL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Resolves DNS addresses.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">maxHosts</td><td>the number of unique hosts to maintain in the cache. </td></tr>
    <tr><td class="paramname">maxTTL</td><td>how long to keep an address in the cache before evicting it. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5afc7f0e2880b4bcf8331f0a4c4486a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5afc7f0e2880b4bcf8331f0a4c4486a0">&#9670;&nbsp;</a></span>~DefaultHostResolver()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::DefaultHostResolver::~DefaultHostResolver </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a59e25b42b810a6f62b31b9db794536cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59e25b42b810a6f62b31b9db794536cd">&#9670;&nbsp;</a></span>DefaultHostResolver() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::DefaultHostResolver::DefaultHostResolver </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3b8ceca8e65d425eadffc389225b0010"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b8ceca8e65d425eadffc389225b0010">&#9670;&nbsp;</a></span>DefaultHostResolver() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::DefaultHostResolver::DefaultHostResolver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9565cc5a541c28081416f05723276916"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9565cc5a541c28081416f05723276916">&#9670;&nbsp;</a></span>LastError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Aws::Crt::Io::DefaultHostResolver::LastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the value of the last aws error encountered by operations on this instance. </dd></dl>

</div>
</div>
<a id="a5f491d1e9b242c40722a6de8629f81cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f491d1e9b242c40722a6de8629f81cd">&#9670;&nbsp;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::DefaultHostResolver::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the instance is in a valid state, false otherwise. </dd></dl>

</div>
</div>
<a id="a30475299241bd247372e095b7a6cc14d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30475299241bd247372e095b7a6cc14d">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a>&amp; Aws::Crt::Io::DefaultHostResolver::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a163c9a7c75b092334491d2838157cf1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a163c9a7c75b092334491d2838157cf1e">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a>&amp; Aws::Crt::Io::DefaultHostResolver::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAws_1_1Crt_1_1Io_1_1DefaultHostResolver.html">DefaultHostResolver</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a828460a40b73a98e4360cbecf76c5865"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a828460a40b73a98e4360cbecf76c5865">&#9670;&nbsp;</a></span>ResolveHost()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Aws::Crt::Io::DefaultHostResolver::ResolveHost </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;&#160;</td>
          <td class="paramname"><em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt_1_1Io.html#acbf0e730c9b86819e74f33f7b5eed73d">OnHostResolved</a> &amp;&#160;</td>
          <td class="paramname"><em>onResolved</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Kicks off an asynchronous resolution of host. onResolved will be invoked upon completion of the resolution. </p><dl class="section return"><dt>Returns</dt><dd>False, the resolution was not attempted. True, onResolved will be called with the result. </dd></dl>

<p>Implements <a class="el" href="classAws_1_1Crt_1_1Io_1_1HostResolver.html#abb01a7459c39c5ece3fc4db34a6ed57f">Aws::Crt::Io::HostResolver</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/io/<a class="el" href="HostResolver_8h_source.html">HostResolver.h</a></li>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/source/io/<a class="el" href="HostResolver_8cpp.html">HostResolver.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
